package com.biz.hunter.dao;

import com.biz.hunter.db.entity.*;
import com.biz.hunter.dbutil.BaseDAO;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author jerry
 */
@Repository
public class DictionaryDAO {
    protected static final String SQL_GET_BY_TYPE = "select * from sys_dict where type = ? and del_flag = 0";

    public List<Dictionary> getByType(String type) {
        return BaseDAO.queryForList(Dictionary.class, SQL_GET_BY_TYPE, type);
    }


}
